package com.qingfeng.medical.biz.hosp.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qingfeng.medical.base.domain.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 排班管理
 *
 * @author 清风学Java
 * @date 2023-04-14 14:47:17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "排班管理")
@TableName("schedule")
public class Schedule extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医生Id")
    private Long doctorId;

    @ApiModelProperty(value = "科室-门诊")
    private Long depId;

    @ApiModelProperty(value = "排班日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date workDate;

    @ApiModelProperty(value = "号源")
    private Integer signalSource;

    @ApiModelProperty(value = "已预约数")
    private Integer reservationNum;

    @ApiModelProperty(value = "空闲数")
    private Integer availableNum;

    @ApiModelProperty(value = "排班状态 （0：停诊  1：正常）")
    private Integer status;

    @ApiModelProperty(value = "价格")
    private Double price;

}
